]> dgit.raspbian.org Git - gnome-shell.git/commit
screenShield: Show detailed notification data if notifications hint it
authorPhilip Withnall <withnall@endlessm.com>
Thu, 1 Nov 2018 20:56:25 +0000 (20:56 +0000)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 30 Jan 2019 19:14:40 +0000 (19:14 +0000)
commite92477a7520dc45d8177472f0212dc27e70ab751
treece811e3d95a93b96e369046b95f03622026491ed
parent37e0a73c8fe25123b341ecdd49ed3ae4604d0506
screenShield: Show detailed notification data if notifications hint it

Allow notifications to set a x-gnome-privacy-scope hint, with values in
['system', 'user']. If all the notifications in a particular source hint
that their privacy scope is ‘system’, don’t hide the notification
details on the lock screen.

This is aimed at fixing the particular case of power notifications: they
contain information which is not private to the user (it relates to the
system: battery state or AC state, which is obvious to anyone who can
see the machine), so hiding the details of a power management
notification when the screen is locked is pointless.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/gnome-shell/issues/726
js/ui/messageTray.js
js/ui/notificationDaemon.js
js/ui/screenShield.js